package com.seirsoft.cookingtime.controller;

import java.util.MissingResourceException;
import java.util.ResourceBundle;

public class Messages {
	private static final String Message_BUNDLE_NAME = "com.seirsoft.cookingtime.controller.messages"; //$NON-NLS-1$

	private static final ResourceBundle Message_RESOURCE_BUNDLE = ResourceBundle
			.getBundle(Message_BUNDLE_NAME);


	
	private Messages() {
	}

	public static String getMessageString(String key) {
		try {
			return Message_RESOURCE_BUNDLE.getString(key);
		} catch (MissingResourceException e) {
			return '!' + key + '!';
		}
	}

}
